<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 17-6-16
 * Time: 上午9:50
 */

namespace App\Http\Controllers\Home;


use App\Http\Controllers\Controller;
use App\Http\Requests\Request;

class BaseController extends Controller
{
    public function getSession()
    {
//        $id = $request()->session()->get('id');
        $username = session('username');
        if(empty($username)){
            return '';
        }else{
            return $username;
        }

    }
}